package com.lagou.sqlSession;

import java.util.List;

public interface SqlSession {

    //查询所有
    public <E> List<E> selectList(String statementid,Object... params) throws Exception;

    //根据条件查询单个
    public <T> T selectOne(String statementid,Object... params) throws Exception;
    /**
     * @Author 陶肖寅
     * @Description 添加,删除，修改方法调用
     * @Date 19:27 2020/1/2
     * @Param [t]
     * @return T
     **/
    int update(String statementid,Object param) throws Exception;
    //为Dao接口生成代理实现类
    public <T> T getMapper(Class<?> mapperClass);



}
